package com.dg.cuckoo.admin.action.basicInformation.label.setLabel;

import com.dg.cuckoo.admin.service.HomeLabelService;
import com.dg.cuckoo.common.utils.PageModel;
import com.dg.cuckoo.core.BaseController;
import com.dg.cuckoo.core.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 基础资料-标签管理-标签设置-首页标签
 */
@RestController
@RequestMapping("/basicInformation/label/setLabel/homeLabel")
public class HomeLabel extends BaseController {

    @Autowired
    private HomeLabelService service;

    /**
     * 分页
     * @param page 页
     * @param pageSize 页数
     * @return
     */
    @PostMapping("page/{page}/{pageSize}")
    public JsonResult<PageModel> page(@PathVariable Integer page, @PathVariable Integer pageSize){
        PageModel data = service.page(page, pageSize);
        return new JsonResult<>(OK,data);
    }

    /**
     * 新建  用TwoLabel 二级标签的新增接口
     */

    /**
     * 点击查询  用OneLabel 一级标签的点击显示接口  删除 禁用启用也用一级标签的方法
     */


}
